from django.urls import re_path,path

from . import consumers, consumers2

websocket_urlpatterns = [
    re_path(r"ws/chat/(?P<room_name>\w+)/$", consumers.ChatConsumer),
    re_path(r"ws/chatTest/(?P<room_name>\w+)/$", consumers2.ChatConsumer), # 实现群组指定人发消息
    # re_path(r"ws/tuisong/(?P<room_name>\w+)/$", consumers.Tuisong),  # 消息推送 url
    path("ws/tuisong/<str:room_name>/", consumers.Tuisong),  # 消息推送 url
]